package month3.day28;

public class Dog extends Pet {
    public Dog(String name, String variety, int physical){
        super(name,variety,physical);
    }
    public void zhualaoshu(){
        System.out.println("有抓老鼠的方法");
    }
    public void print() {
        super.print();
        zhualaoshu();
    }
}
